package com.ljh.cloudmusic.controller;

import com.ljh.cloudmusic.model.MusicWithFavorite;
import com.ljh.cloudmusic.service.LoveMusicService;
import com.ljh.cloudmusic.utils.ResponseBodyMessage;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Themberfue
 * @date: 2025/3/9 23:14
 * @description:
 */
@RequestMapping("/lovemusic")
@RestController
public class LoveMusicController {
    @Autowired
    LoveMusicService loveMusicService;

    @RequestMapping("/likeMusic")
    public ResponseBodyMessage<Boolean> likeMusic(@RequestParam Integer musicId, HttpServletRequest request) {
        return loveMusicService.likeMusic(musicId, request);
    }
}
